<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>添加/修改缴费记录</title>
  <link rel="stylesheet" href="../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../yl/style.css" />
  <link rel="stylesheet" href="../../yl/mobile.css" />
  <link rel="stylesheet" href="../../yl/easyui.css" />
  <link rel="stylesheet" href="../../yl/icon.css" />
</head>

<body>
  <!-- <div id="app"> -->
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar" v-cloak>
        <div class="m-title">{{action=='Add'?'添加缴费':action=='Modify'?'修改缴费':''}}</div>
      </div>
    </header>
    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'party_fees', 'form': 'dataForm', 'primary_key':'Party_Fee_SerialNumber' })">
      <div class="yl-main" v-cloak>
        <el-form :model="dataForm" ref="form" inline-message="true" style="width: 100%">

          <el-descriptions :column="2" size="large" border>
            <el-descriptions-item :span="2">
              <template #label>
                <div class="cell-item">党组织：</div>
              </template>
              <el-form-item  prop="Party_Organization_SerialNumber" :rules="[{ required: true, message: '请输入任务名称', trigger: 'blur' }]">
                <el-cascader @change="changeOrganization" filterable style="width: 100%;" v-model="dataForm.Party_Organization_SerialNumber" :options="Organization"
                :props="{ emitPath: false,
                          value: 'value', 
                          label: 'label',
                          children: 'children',checkStrictly: false }" clearable></el-cascader>
              </el-form-item>
            </el-descriptions-item>


            <el-descriptions-item :span="2">
              <template #label>
                <div class="cell-item">党员姓名：</div>
              </template>
              <el-form-item prop="Party_Member_SerialNumber"
                :rules="[{ required: true, message: '请选择记录人', trigger: 'change' }]">
                <yl-select v-model="dataForm.Party_Member_SerialNumber" clearable filterable placeholder="请选择党员"
                  :options="Member" :props="{value:'Party_Member_SerialNumber',label:'Personal_Name'}">
                  <el-table-column prop="ID_Card_Number" width="180" show-overflow-tooltip
                    label="身份证号"></el-table-column>
                  <el-table-column prop="Personal_Name" show-overflow-tooltip label="姓名"></el-table-column>
                  <el-table-column prop="Birthday" show-overflow-tooltip label="出生日期"></el-table-column>
                  <el-table-column prop="Gender" label="性别"></el-table-column>
                  <el-table-column prop="Nation" label="民族"></el-table-column>
                  <el-table-column prop="Registered_Residence" show-overflow-tooltip label="籍贯"></el-table-column>
                  <el-table-column prop="Contact_Phone" label="联系方式"></el-table-column>
                </yl-select>
              </el-form-item>
            </el-descriptions-item>

            <el-descriptions-item :span="2">
              <template #label>
                <div class="cell-item">缴费日期：</div>
              </template>
              <el-form-item prop="Fee_Date" :rules="[{ required: true, message: '请输入日期', trigger: 'blur' }]">

                <el-date-picker @change="changeFee_Date" v-model="dataForm.Fee_Date" format="YYYY-MM-DD" value-format="YYYY-MM-DD"
                  class="borderless-input" type="date" placeholder="请选择缴费日期" size="large" />
              </el-form-item>
            </el-descriptions-item>

            <el-descriptions-item :span="2">
              <template #label>
                <div class="cell-item">归属期间：</div>
              </template>
              <el-form-item prop="Belonginterval" :rules="[{ required: true, message: '请选择归属期间', trigger: 'blur' }]">

                <el-date-picker  v-model="dataForm.Belonginterval" format="YYYY-MM" value-format="YYYY-MM"
                  class="borderless-input" type="month" placeholder="请选择归属期间" size="large" />
              </el-form-item>
            </el-descriptions-item>


            <el-descriptions-item :span="2">
              <template #label>
                <div class="cell-item">缴费类型：</div>
              </template>
              <el-form-item prop="FeeType"  :rules="[{ required: true, message: '请选择缴纳类型', trigger: 'blur' }]">
                <el-select clearable v-model.trim="dataForm.FeeType" placeholder="请选择缴纳类型" filterable
                  style="width: 100%">
                  <el-option v-for="(item,index) in FeeTypeList" :key="index" :label="item.lable"
                    :value="item.value"></el-option>
                </el-select>
              </el-form-item>
            </el-descriptions-item>   

            <el-descriptions-item :span="2">
              <template #label>
                <div class="cell-item">缴费金额：</div>
              </template>
              <el-form-item prop="Fee_Amount"  :rules="[{ required: true, message: '请输入缴费金额', trigger: 'blur' }]">
                <el-input type="number" step="0.01" @input="validateInput" @change="validateInput" v-model="dataForm.Fee_Amount"
                  class="borderless-input" placeholder="请输入缴费金额" />
              </el-form-item>
            </el-descriptions-item>          

          </el-descriptions>
        </el-form>
      </div>
    </div>
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" :loading="loading" plain @click="handleSubmit">提交</el-button>
    </footer>
  </div>
</body>
<script src="../../utils/utils.js"></script>
<script src="../../utils/compressor.js"></script>
<script src="../../utils/wangeditor.js"></script>
<script src="../../config/config.js"></script>
<script src="../../utils/mixins.js"></script>
<script src="../../yl/vue.js"></script>
<script src="../../yl/index.js"></script>
<script src="../../yl/zh-cn.mjs"></script>
<script src="../../yl/index.iife.min.js"></script>
<script src="../../yl/jquery.min.js"></script>
<script src="../../utils/jquery.cookie.js"></script>
<script src="../../yl/jquery.easyui.min.js"></script>
<script src="../../yl/jquery.easyui.mobile.js"></script>
<script src="../../yl/moment.min.js"></script>
<script src="../../api/request.js"></script>
<script src="./js/add.js"></script>

</html>